//
//  ViewController.swift
//  Closore
//
//  Created by 郑东喜 on 2016/11/16.
//  Copyright © 2016年 郑东喜. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let imgView = UIImageView(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
        view.addSubview(imgView)
        
        // Do any additional setup after loading the view, typically from a nib.
        Test_.shared.choosePhoto { (imgData) in
            print(imgData)
            imgView.image = UIImage(data: imgData)
        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

